package com.spring.springboot.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 附件数据(FileInfo)数据返回体
 *
 * @author 宋义州
 * @since 2022-08-12 16:59:17
 */
@Data
@ApiModel(description = "附件数据数据返回体")
public class FileInfoResult {

    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "外键")
    private Long mainId;

    @ApiModelProperty(value = "文件访问路径")
    private String urlPath;

    @ApiModelProperty(value = "删除标记(未删除：0，已删除：1)")
    private Integer delFlag;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建人姓名")
    private String createUserName;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新人姓名")
    private String updateUserName;
}

